Optimal. Leaf size=113 \[ \frac{3 b \sec (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{2 f}-\frac{\cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{f}+\frac{3 \sqrt{b} (a-b) \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0819726, antiderivative size = 113, normalized size of antiderivative = 1., number of steps used = 5, number of rules used = 5, integrand size = 23, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.217, Rules used = {3664, 277, 195, 217, 206} \[ \frac{3 b \sec (e+f x) \sqrt{a+b \sec ^2(e+f x)-b}}{2 f}-\frac{\cos (e+f x) \left (a+b \sec ^2(e+f x)-b\right )^{3/2}}{f}+\frac{3 \sqrt{b} (a-b) \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a+b \sec ^2(e+f x)-b}}\right )}{2 f} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3664
Rule 277
Rule 195
Rule 217
Rule 206
Rubi steps
\begin{align*} \int \sin (e+f x) \left (a+b \tan ^2(e+f x)\right )^{3/2} \, dx &=\frac{\operatorname{Subst}\left (\int \frac{\left (a-b+b x^2\right )^{3/2}}{x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=-\frac{\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac{(3 b) \operatorname{Subst}\left (\int \sqrt{a-b+b x^2} \, dx,x,\sec (e+f x)\right )}{f}\\ &=\frac{3 b \sec (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{2 f}-\frac{\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac{(3 (a-b) b) \operatorname{Subst}\left (\int \frac{1}{\sqrt{a-b+b x^2}} \, dx,x,\sec (e+f x)\right )}{2 f}\\ &=\frac{3 b \sec (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{2 f}-\frac{\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}+\frac{(3 (a-b) b) \operatorname{Subst}\left (\int \frac{1}{1-b x^2} \, dx,x,\frac{\sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{2 f}\\ &=\frac{3 (a-b) \sqrt{b} \tanh ^{-1}\left (\frac{\sqrt{b} \sec (e+f x)}{\sqrt{a-b+b \sec ^2(e+f x)}}\right )}{2 f}+\frac{3 b \sec (e+f x) \sqrt{a-b+b \sec ^2(e+f x)}}{2 f}-\frac{\cos (e+f x) \left (a-b+b \sec ^2(e+f x)\right )^{3/2}}{f}\\ \end{align*}
Mathematica [A] time = 1.21397, size = 170, normalized size = 1.5 \[ \frac{\sec (e+f x) \sqrt{\sec ^2(e+f x) ((a-b) \cos (2 (e+f x))+a+b)} \left (6 \sqrt{2} \sqrt{b} (a-b) \cos ^2(e+f x) \tanh ^{-1}\left (\frac{\sqrt{(a-b) \cos (2 (e+f x))+a+b}}{\sqrt{2} \sqrt{b}}\right )-2 ((a-b) \cos (2 (e+f x))+a-2 b) \sqrt{(a-b) \cos (2 (e+f x))+a+b}\right )}{4 \sqrt{2} f \sqrt{(a-b) \cos (2 (e+f x))+a+b}} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] time = 0.053, size = 359, normalized size = 3.2 \begin{align*} -{\frac{\cos \left ( fx+e \right ) }{2\,fb} \left ({\frac{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b}{ \left ( \cos \left ( fx+e \right ) \right ) ^{2}}} \right ) ^{{\frac{3}{2}}} \left ( 3\,{b}^{5/2}\ln \left ( 2\,{\frac{\sqrt{b}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b}+b}{\cos \left ( fx+e \right ) }} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}-3\,{b}^{3/2}\ln \left ( 2\,{\frac{\sqrt{b}\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b}+b}{\cos \left ( fx+e \right ) }} \right ) \left ( \cos \left ( fx+e \right ) \right ) ^{2}a+ \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b \right ) ^{{\frac{3}{2}}} \left ( \cos \left ( fx+e \right ) \right ) ^{2}a- \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b \right ) ^{{\frac{3}{2}}} \left ( \cos \left ( fx+e \right ) \right ) ^{2}b- \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b \right ) ^{{\frac{5}{2}}}+3\,\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b} \left ( \cos \left ( fx+e \right ) \right ) ^{2}ab-3\,\sqrt{a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b} \left ( \cos \left ( fx+e \right ) \right ) ^{2}{b}^{2} \right ) \left ( a \left ( \cos \left ( fx+e \right ) \right ) ^{2}- \left ( \cos \left ( fx+e \right ) \right ) ^{2}b+b \right ) ^{-{\frac{3}{2}}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: ValueError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.90307, size = 667, normalized size = 5.9 \begin{align*} \left [-\frac{3 \,{\left (a - b\right )} \sqrt{b} \cos \left (f x + e\right ) \log \left (-\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} - 2 \, \sqrt{b} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right ) + 2 \, b}{\cos \left (f x + e\right )^{2}}\right ) + 2 \,{\left (2 \,{\left (a - b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{4 \, f \cos \left (f x + e\right )}, -\frac{3 \,{\left (a - b\right )} \sqrt{-b} \arctan \left (\frac{\sqrt{-b} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}} \cos \left (f x + e\right )}{b}\right ) \cos \left (f x + e\right ) +{\left (2 \,{\left (a - b\right )} \cos \left (f x + e\right )^{2} - b\right )} \sqrt{\frac{{\left (a - b\right )} \cos \left (f x + e\right )^{2} + b}{\cos \left (f x + e\right )^{2}}}}{2 \, f \cos \left (f x + e\right )}\right ] \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Timed out} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: TypeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]